package cn.jwcat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户健康信息表
 * </p>
 *
 * @author 作者
 * @since 2023-05-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("s_user_health")
public class UserHealth implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 用户健康信息id
	 */
	@TableId(value = "user_health_id", type = IdType.AUTO)
	private Integer userHealthId;

	/**
	 * 用户体温度数
	 */
	@TableField("user_temper")
	private Float userTemper;

	/**
	 * 用户是否头疼
	 */
	@TableField("user_headache")
	private Boolean userHeadache;

	/**
	 * 是否发烧
	 */
	@TableField("user_fever")
	private Boolean userFever;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 用户表的id
	 */
	@TableField("user_id")
	private Integer userId;

	/**
	 * 用户备注
	 */
	@TableField("user_remark")
	private String userRemark;


}
